package com.ssm.exception;

public enum ResultCode {

    /**
     * 未知错误
     */
    UNKNOWM_ERROR(1001,"unknown error"),
    /**
     * 登陆错误
     */
    LOGIN_ERROR(1002,"用户名或密码错误");
    /**
     * 状态码
     */
    private int code;
    /**
     * 状态码描述
     */
    private String msg;

    ResultCode(int code,String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
